package io.renren.modules.project.service.impl;

import io.renren.modules.project.dao.NotificationDao;
import io.renren.modules.project.entity.NotificationEntity;
import io.renren.modules.project.service.NotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by LDC on 2018/11/27.
 */

@Service("notificationService")
public class NotificationServiceImpl implements NotificationService {
    @Autowired
    private NotificationDao notificationDao;

    @Override
    public NotificationEntity queryObject(String id){
        return notificationDao.queryObject(id);
    }

    @Override
    public List<NotificationEntity> queryList(Map<String, Object> map){
        return notificationDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return notificationDao.queryTotal(map);
    }

    @Override
    public void save(NotificationEntity notification){
        notificationDao.save(notification);
    }

    @Override
    public void update(NotificationEntity notification){
        notificationDao.update(notification);
    }

    @Override
    public void delete(String id){
        notificationDao.delete(id);
    }

    @Override
    public void deleteBatch(String[] ids){
        notificationDao.deleteBatch(ids);
    }
}
